package com.qf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.util.Map;

/**
 *
 * 用户管理
 * @author lixu
 */
@Controller
@RequestMapping("/user")
public class UserController {

    /**
     * 接收第一个请求
     */
    @RequestMapping("/test1")
    public String test(String name, Integer age, HttpServletResponse response,
                       HttpServletRequest request, HttpSession httpSession,
                       Map<String,String> result){


        result.put("name",name); // ==  request.setAttribute("name",name);

        return "/jsp/gp15.jsp";//内部转发

    }

/*    @RequestMapping("/test2")
    public String test(){



    }*/


}
